import csv
#black list
blacklist=[]
filelist=['test.csv','test2.csv']
for i in range(2):
    f=open(filelist[i],'r',encoding='UTF-8')
    for row in csv.reader(f,delimiter=';'):
        blacklist.append(row)
#big csv
big=[]
f=open('big.csv','r',encoding='UTF-8')
for row in csv.reader(f,delimiter=';'):
        big.append(row)
#remove test test
for row in blacklist:
	for r in big:
            if r[1]==row[1]: big.remove(r)
cn=200
c=0
rw=[]
for row in big:
    rw.append(row)
    if cn<200:
        cn+=1
    else:
        cn=0
        c+=1
        f=open(str(c)+'.csv','w', newline='',encoding='UTF-8')
        writer=csv.writer(f,delimiter=';')
        writer.writerows(rw)
        f.close
        rw=[]
